package com.hsgene.mq.constant;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @author wxf
 * @date 2018/10/31 15:03
 **/
public enum MqErrorCode implements ErrorCode {

    /**
     *
     */
    MQ_SEND_IS_EXCEPTION(80008, "MQ_SEND_IS_EXCEPTION", "消息队列发送异常"),
    AGENCY_SEND_IS_EXCEPTION(80009, "AGENCY_SEND_IS_EXCEPTION", "获取机构推送信息异常"),
    AGENCY_ID_IS_NOT_NULL(80010, "AGENCY_ID_IS_NOT_NULL", "机构不能为空"),
    AGENCY_ORDER_IS_NULL(80011, "AGENCY_ORDER_IS_NULL", "机构没有新订单"),
    MQ_SEND_IS_ERROR(80008, "MQ_SEND_IS_ERROR", "消息队列发送失败");

    private final int code;

    private final String message;

    private final String description;

    MqErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
